package  org.snap.java.examples.calculator;

import static org.junit.Assert.*;

import org.junit.Test;

public class CalculatorTest {

	@Test
	public void testAdd() {
		Calculator calculator = new Calculator();
		double result = calculator.add(10,50);
		assertEquals(60, result, 0);
	}

	@Test
	public void testSubtract() {
		Calculator calculator = new Calculator();
		double result = calculator.subtract(30,20);
		assertEquals(10, result, 0);
	}

}
